<?php

namespace App\Services\Article;

use App\Services\ProjectValidate;

/**
 * 文章分类设置验证
 * Class ValidateSetting
 * @package App\Services\Setting
 */
class ValidateArticleClassify extends ProjectValidate
{

    /**
     * 自定义子类初始化
     * @param array $initData
     * @return mixed
     */
    public function initValidate($initData = [])
    {

    }


    /**
     * @var array 验证规则集合
     */
    public $rules = [
        'id'        => 'required',
        'name'      => 'required|string|min:2',
        'belong_to' => 'required|in:0,1,2',
    ];


    /**
     * @var array 当前验证错误信息
     */
    public $messages = [
        'name'      => '主题名称',
        'belong_to' => '主题归属',
    ];
}
